<template>
  <view>
    <u-navbar
      :background="{ backgroundColor: '#fff' }"
      backIconColor="#333"
      title-color="#333"
      title="网页"
      :border-bottom="false"
      :is-back="true"
    >
    </u-navbar>
    <!-- 参阅 https://uniapp.dcloud.io/static/web-view.html -->
    <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      url: ''
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.url = decodeURIComponent(options.url || 'about:blank')
  },
  methods: {}
}
</script>

<style></style>
